import request from '@/utils/request'

// 人员管理-列表查询
export function staff() {
  return request({
    url: '/radiation/staff',
    method: 'get'
  })
}
// 人员管理-新增接口
export function poststaff(data) {
  return request({
    url: '/radiation/staff',
    method: 'post',
    data
  })
}
// 人员管理-调岗
export function putstaff(data) {
  return request({
    url: '/radiation/staff',
    method: 'put',
    data
  })
}
// 人员管理-上传疑似职业病报告 /radiation/disease
export function disease(data) {
  return request({
    url: '/radiation/disease',
    method: 'post',
    data
  })
}
// 人员管理-上传诊断委托材料
export function entrust(data) {
  return request({
    url: '/radiation/proxy',
    method: 'post',
    data
  })
}
//个人检测报告-查询
export function getdose(id) {
  return request({
    url: '/radiation/dose?id='+id,
    method: 'get'
  })
}
//个人检测报告-添加
export function postdose(data) {
  return request({
    url: '/radiation/dose',
    method: 'post',
    data
  })
}
//个人检测报告-修改
export function uptedose(data) {
  return request({
    url: '/radiation/dose',
    method: 'put',
    data
  })
}
//个人检测报告-删除
export function deldose(ids) {
  return request({
    url: '/radiation/dose/'+ids,
    method: 'DELETE',
  })
}
//个人检测报告-详情
export function getinldose(id) {
  return request({
    url: '/radiation/dose'+id,
    method: 'get',
    data
  })
}

//岗前岗中培训-查询 /raiation/train
export function train(data) {
  return request({
    url: `/radiation/train/list`,
    method: 'get',
    params: data
  })
}
